package com.xbongbong.pro.rabbitmq.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.message.pojo.dto.PublicGroupRabbitMqDTO;
import com.xbongbong.pro.message.pojo.vo.PublicGroupRabbitMqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lijiangren
 * @version v1.0
 * @date 2022/05/18 10:59
 * @since v1.0
 */
@FeignClient(name = "pro-web-pc",contextId = "publicGroupFeignClient")
public interface PublicGroupFeignClient {

    /**
     * Description: 绑定公海分组
     * @param publicGroupRabbitMqDTO 绑定公海dto
     * @return
     */
    @RequestMapping(value = "/pro/v1/bind/publicGroup/add", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<PublicGroupRabbitMqVO> bindPublicGroup(@RequestBody PublicGroupRabbitMqDTO publicGroupRabbitMqDTO, @RequestParam("lang") String lang);
}
